package top.hzy520.personalblog.service;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import top.hzy520.personalblog.po.Type;

import java.util.List;

public interface TypeService {
    Type saveType(Type type);
    Type getType(Long id);
    Type getTypeByName(String name);
    Page<Type> listTYpe(Pageable pageable);
    List<Type> listtype();
    List<Type> listType(Integer size);
    Type updateType(Long id,Type type);
    void  deleteType(Long id);
}
